<?php /* Smarty version Smarty-3.1.18, created on 2015-02-04 17:03:38
         compiled from "/data/www/mystery/protected/modules/webadmin/views/question/set_information.tpl" */ ?>
<?php /*%%SmartyHeaderCode:66307068154d1e06a415853-28092635%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '527209e92dd50f735bc8f783cdbe1411d6effdfc' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/question/set_information.tpl',
      1 => 1421807239,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '66307068154d1e06a415853-28092635',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'subjectOne' => 0,
    'questionId' => 0,
    'typeId' => 0,
    'questionType' => 0,
    'key' => 0,
    'ls' => 0,
    'classify' => 0,
    'val' => 0,
    'subjects' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_54d1e06a4c4545_58064579',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_54d1e06a4c4545_58064579')) {function content_54d1e06a4c4545_58064579($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("../common/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<style>
	td .tdRightCss{
		text-align: right;
	}
</style>
<table width="100%" border="0" cellspacing="0">
	<tr>
		<td width="13%" valign="top">
			<?php echo $_smarty_tpl->getSubTemplate ("../common/left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		</td>
        <td width="87%" valign="top"><table width="100%" border="0" cellspacing="0">
				<tr>
					<td>
						<form id="subject_form" method="" action="">
						<div class="subnav">
							<div class="content-menu ib-a blue line-x"> <a href="/webadmin/question/set" class="on"><em>问卷内容设置</em></a><span>|</span> 是否基本信息：
								<select name="is_basic">
									<option value="">请选择</option>
									<option <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['is_basic']==1) {?>selected="selected"<?php }?> value="1">是</option>
									<option <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value&&$_smarty_tpl->tpl_vars['subjectOne']->value['is_basic']==0) {?>selected="selected"<?php }?> value="0">否</option>
								</select>
								&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="hidden" name="subject_id" value="<?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['subject_id'];?>
"/>
								<input type="hidden" name="question_id" value="<?php echo $_smarty_tpl->tpl_vars['questionId']->value;?>
"/>
								<input type="hidden" name="type_id" value="<?php echo $_smarty_tpl->tpl_vars['typeId']->value;?>
"/>
								题目类型：
								<select name="question_type">
									<?php  $_smarty_tpl->tpl_vars['ls'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ls']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['questionType']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ls']->key => $_smarty_tpl->tpl_vars['ls']->value) {
$_smarty_tpl->tpl_vars['ls']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['ls']->key;
?>
									<option <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['question_type']==$_smarty_tpl->tpl_vars['key']->value) {?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['typeId']->value==$_smarty_tpl->tpl_vars['key']->value) {?>selected="selected"<?php }?> >--<?php echo $_smarty_tpl->tpl_vars['ls']->value['title'];?>
--</option>
									<?php } ?>
								</select>
							</div>
						</div>

						<div class="wjtx">							
							<table width="100%" style="margin:0px;"  bgcolor="#eef3f7">
								<tbody>
									<tr>
										<td width="5%" height="60" class="tdRightCss">
											问题归类：  	</td>	
										<td width="15%">
											<select id="classify" name="classify_id" style="width:90%">
												<option value="0">-请选择-</option>
												<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['classify']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
												<option <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['classify_id']==$_smarty_tpl->tpl_vars['key']->value) {?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['val']->value;?>
</option>
												<?php } ?>
											</select>
										</td>
										
										<td class="tdRightCss"><a href="javascript:void(0);" name="classify_add">添加归类</a></td>
										<td width="40%">
											<span id="classify_add_td" style="display:none;">
											<input name="classify_name" id="classify_name" value="" style="width:300px;" class="inputTextLine">
											<input class="button" type="button" name="classify_add_sub" value="添加">
											</span>
										</td>
										<td class="tdRightCss" id="standard_score_name" <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['is_basic']) {?>style="display:none;"<?php }?>>
											标准得分：  	</td>
										<td id="standard_score" <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['is_basic']) {?>style="display:none;"<?php }?>>
											<input name="standard_score" value="<?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['standard_score'];?>
" style="width:90%" class="inputTextLine">
										</td>
										
									</tr>
									
									<tr>
										<td width="1%" nowrap="" class="tdRightCss"> 题目编号： </td>
										<td width="1%"><input name="question_num" id="no" value="<?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['question_num'];?>
" style="width:90%" class="inputTextLine">
										</td>
										<td nowrap="1%" class="tdRightCss"> 题目名称： </td>
										<td width="20%"><input name="title" id="title" value="<?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['title'];?>
" style="width:90%" class="inputTextLine">
										</td>
										<td class="tdRightCss">是否必填：</td>
										<td >
											<input type="checkbox" <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['extend']['is_required']) {?>checked="checked"<?php }?> value="1" id="is_required" name="is_required">  	
										</td>
									</tr>
									<tr>
										<td class="tdRightCss"> 题目描述： </td>
										<td colspan="5"><textarea style="width: 90%;height:40px;font-size:12px;line-height: 16px;resize:none;" name="content" id="cue"><?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['content'];?>
</textarea>
										</td>
									</tr>
									<tr>
											<td width="9%" class="tdRightCss">
												是否关联题目：
											</td>
											<td>
												<input type="checkbox" <?php if ($_smarty_tpl->tpl_vars['subjectOne']->value['extend']['is_relation']) {?>checked="checked"<?php }?> value="1" id="is_relation" name="is_relation">  	
											</td>
											<td id="relation" class="tdRightCss" style="display:none;">
												关联题目编号：
											</td>
											<td id="relation_num" style="display:none;">
												<input name="relation_num" value="<?php echo $_smarty_tpl->tpl_vars['subjectOne']->value['extend']['relation_num'];?>
" style="width:90%" class="inputTextLine" title="规则是字母或者字母加数字，例如：C 表示整个体面编号以C开头的题目，B1,B2b表示B1和B2两个题目">
											</td>
										</tr>
								</tbody>
							</table>
						</div>
						<table width="100%" border="0" cellspacing="0">
							<tr>
								<td height="67" align="center"><input id="submit_fill" type="submit" value="保存" class="button" name="dosubmit2"></td>
							</tr>
						</table>
						</form>
						
						<?php if ($_smarty_tpl->tpl_vars['subjects']->value) {?>
							<?php echo $_smarty_tpl->getSubTemplate ("./set_common.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

						<?php }?>
						</td>
				</tr>
			</table></td>
	</tr>
</table>
<?php echo $_smarty_tpl->getSubTemplate ("./set_common_js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
